{% extends "admin/base.html" %}

{% block main %}
	<div class='main'>
	{% if targetuser %}
		<table class='form'>
		<tr>
			<th width='120'>登录名：</th>
			<td><strong>{{ targetuser.username }}</strong></td>
		</tr>
		<tr>
			<th>显示昵称：</th>
			<td>{{ targetuser.namealias }}</td>
		</tr>
		<tr>
			<th>全名：</th>
			<td>{{ targetuser.fullname }}</td>
		</tr>
		<tr>
			<th>电子邮件/Email：</th>
			<td>{{ targetuser.email }}</td>
		</tr>
		<tr>
			<th>子域名/目录：</th>
			<td>{{ targetuser.domainname }}</td>
		</tr>
		<tr>
			<th>创建时间：</th>
			<td>{{ targetuser.createdate_dt }}</td>
		</tr>
		<tr>
			<th>最后登录时间：</th>
			<td>{{ targetuser.lastlogindate_dt }}</td>
		</tr>
		<tr>
			<th>是否管理员：</th>
			<td>{{ '是' if targetuser.is_root_user else '否' }}</td>
		</tr>
		<tr>
			<th>允许登录：</th>
			<td>{{ '是' if targetuser.enabled else '否' }}</td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td>
				<div class='forwardlinks'>
				<a href='/admin/users/{{ targetuser.id }}/settings/'>修改设置</a>
				<a href='/admin/users/{{ targetuser.id }}/change_password/'>修改登录密码</a>
				</div>
				<br /><a href='/admin/users/{{ targetuser.id }}/delete/' class='del'>删除这个用户</a>				
			</td>
		</tr>
		</table>
	{% else %}
		<span class='notify'>指定的用户没有找到。</span>
	{% endif %}
	</div>
	
{% endblock %}